

from django.conf.urls import re_path
from BookTest.views使用ViewSet import *

urlpatterns = [
    # PATCH + /books/<pk>/ = self.read
    re_path(r'^books/(?P<pk>\d+)/$', BooksViewSet.as_view({"patch": "read"}))
]